package com.gopay.common.domain.cbrmb;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * @ClassName CbRmbForceRefundRecord 
 * @Description 跨境人民币虚拟账户已支付汇款订单控制台强制退款记录表
 * @author b.zou
 * @date 2017年1月12日 下午2:54:31
 * @Copyright ©www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CB_RMB_FORCE_REFUND_RECORD")
public class CbRmbForceRefundRecord extends BaseEntity {

	/**
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 4889929839826089722L;
	
	/**
	 * 主键ID
	 */
    @Id
    @SequenceGenerator(name="CbRmbForceRefundRecordSequence",sequenceName="CB_RMB_FORCE_REFUND_RECORD_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CbRmbForceRefundRecordSequence")
    @Column(name="id", unique=true, nullable=false)
    private Integer id;
    
    /**
     * 国付宝订单号
     */
    @Column(name="GOPAY_ORDER_ID")
    private String gopayOrderId;
    
    /**
     * 交易类型代码
     */
    @Column(name="GOPAY_INT_TXN_CD")
    private String gopayIntTxnCd;
    
    /**
     * 创建时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATE_TIME")
    private Date createTime;
    
    /**
     * 操作员ID
     */
    @Column(name="OPERATOR_ID")
    private String operatorId;

    /**
     * 退款原因
     */
    @Column(name="REFUND_REASON")
    private String refundReason;
    
    /**
     * 状态
     * 20000-成功
     * 30000-进行中
     * 20003-审核拒绝，订单失败
     */
    @Column(name="REFUND_STATUS")
    private int refundStatus;
    
    /**
     * 是否需要审核
     * 1-需要审核
     * 2-不需要审核
     */
    @Column(name="REVIEW_STATUS")
    private int reviewStatus;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	public String getGopayIntTxnCd() {
		return gopayIntTxnCd;
	}

	public void setGopayIntTxnCd(String gopayIntTxnCd) {
		this.gopayIntTxnCd = gopayIntTxnCd;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}

	public String getRefundReason() {
		return refundReason;
	}

	public void setRefundReason(String refundReason) {
		this.refundReason = refundReason;
	}

	public int getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(int refundStatus) {
		this.refundStatus = refundStatus;
	}

	public int getReviewStatus() {
		return reviewStatus;
	}

	public void setReviewStatus(int reviewStatus) {
		this.reviewStatus = reviewStatus;
	}
    
	
    
}
